//
//  LabelButtonCollectionReusableView.m
//  14-CollectionViewLiWuShuoHomeWork
//
//  Created by 曹曹 on 16/8/2.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "LabelButtonCollectionReusableView.h"

@interface LabelButtonCollectionReusableView ()
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, strong) UIButton *button;
@end

@implementation LabelButtonCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, CGRectGetWidth(frame) / 2, CGRectGetHeight(frame))];
        _label.text = @"品类";
        _label.textColor = [UIColor grayColor];
        [self addSubview:_label];
        _button = [UIButton buttonWithType:UIButtonTypeSystem];
        _button.frame = CGRectMake(CGRectGetWidth(frame) - 100, 0, 100, CGRectGetHeight(frame));
        [_button setTitle:@"查看全部>" forState:UIControlStateNormal];
        [_button setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        [self addSubview:_button];
    }
    return self;
}
@end
